package com.qcby.service;

import com.qcby.entity.Exam;
import com.qcby.entity.LessonPlan;
import com.qcby.entity.PageResult;
import com.qcby.entity.Result;

import java.io.IOException;
import java.util.List;

public interface ExamService {
    PageResult<Exam> getExam(Exam exam);

    Result addExam(Exam exam) throws IOException;

    Exam getExamById(Integer id);


    void updateExambyId(Integer id);

    Result addExamByLessionPlan(LessonPlan plan) throws IOException;

    Result getExamByName(Exam exam);
    void deleteExam(String name);

}
